<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/3/14
 * Time: 11:50 PM
 */

namespace mysql;


if (!defined('NYMPH_ROOT')) {
  define('NYMPH_ROOT', dirname("../../../" . __FILE__));
  require(NYMPH_ROOT . '/local/loader/kernel/classes/URLClassLoader.php');
}

use base\ICallbackInner;

/**
 * This class is used as callback for getting last inserted id
 */
class LastIdInnerCallback implements ICallbackInner{

  /**
   * (PHP 5)<br/>
   * Returns the last inserted id
   * @return mixed id
   */
  public function execute()
  {
    return mysql_insert_id();
  }
}